.. highlightlang:: us .. index:: @f{scaleaxis} .. _@f{scaleaxis}: @f{scaleaxis} ============= .. us.tag @f{scaleaxis} NOTREADYENGLISH fieldfunction Creates an axisscale depending on another diagram axis. .. function:: @f{scaleaxis(diagramname, scale_factor, add_offset, type} .. us.params **Parameters** .. uparam:: diagramname Name of a diagram. .. uparam:: scale_factor Scale factor .. uparam:: add_offset Offset .. uparam:: type Type of axis scale: .. list-table:: :header-rows: 1 * - Value - Meaning * - exact - Create the exact same number of labels. * - round - Create rounded. .. us.comment **Comment** The field function can only be used inside the axis title. .. us.example **Example** To create a second x-axis that displays revolution per second add the following field function to the x axis title: .. highlight:: none :: @f{scaleaxis(Diagram 1, 0.1666, 0, exact)} .. highlight:: us where ``Diagram 1`` is the diagram with the x-axis scaled in revolution per minute. **Output** :: x-Axis Diagram 1 [1/min] = 1000, 2000, 3000, 4000, 5000 x-Axis Diagram 2 [1/s] = 17, 33, 50, 67, 83 .. seealso:: :ref:`overview-field-functions`, :ref:`editupdate-fields`, :ref:`diagraminsert-field-function` :sub:`id-931350`